import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js';
//教师学生课堂列表查询
export const createClassService = (className,courseName)=>{
    let tokenStore = useTokenStore()
    const headers = {
        token: tokenStore.token.token
    }
    console.log(tokenStore.token.token)
    const params = new URLSearchParams()
    params.append('className',className)
    params.append('courseName',courseName)
    const config = {  
        headers: headers,  
        params: params  
    };  
    return request.post('/teacher/create/class',null,config);
}